package com.wyzz.hr.pojo.base;

import java.io.Serializable;

import com.wyzz.hr.pojo.Department;
import com.wyzz.hr.pojo.Ouresponse;
import com.wyzz.hr.pojo.PositionBase;

public abstract class BaseOuresponse implements Serializable {

	public BaseOuresponse() {
		hashCode = 0x80000000;
		initialize();
	}

	public BaseOuresponse(String id) {
		hashCode = 0x80000000;
		setId(id);
		initialize();
	}

	public BaseOuresponse(String id, String ourName, Integer ourSortId) {
		hashCode = 0x80000000;
		setId(id);
		setOurName(ourName);
		setOurSortId(ourSortId);
		initialize();
	}

	protected void initialize() {
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
		hashCode = 0x80000000;
	}

	public String getOurName() {
		return ourName;
	}

	public void setOurName(String ourName) {
		this.ourName = ourName;
	}

	public String getOurDesc() {
		return ourDesc;
	}

	public void setOurDesc(String ourDesc) {
		this.ourDesc = ourDesc;
	}

	public Integer getOurRate() {
		return ourRate;
	}

	public void setOurRate(Integer ourRate) {
		this.ourRate = ourRate;
	}

	public Integer getOurSortId() {
		return ourSortId;
	}

	public void setOurSortId(Integer ourSortId) {
		this.ourSortId = ourSortId;
	}

	public PositionBase getOurPb() {
		return ourPb;
	}

	public void setOurPb(PositionBase ourPb) {
		this.ourPb = ourPb;
	}

	public Department getOurDept() {
		return ourDept;
	}

	public void setOurDept(Department ourDept) {
		this.ourDept = ourDept;
	}

	public boolean equals(Object obj) {
		if (null == obj)
			return false;
		if (!(obj instanceof Ouresponse))
			return false;
		Ouresponse ouresponse = (Ouresponse) obj;
		if (null == getId() || null == ouresponse.getId())
			return false;
		else
			return getId().equals(ouresponse.getId());
	}

	public int hashCode() {
		if (0x80000000 == hashCode) {
			if (null == getId())
				return super.hashCode();
			String hashStr = (new StringBuilder()).append(getClass().getName())
					.append(":").append(getId().hashCode()).toString();
			hashCode = hashStr.hashCode();
		}
		return hashCode;
	}

	public String toString() {
		return super.toString();
	}

	public static String REF = "Ouresponse";
	public static String PROP_OUR_RATE = "ourRate";
	public static String PROP_OUR_DEPT = "ourDept";
	public static String PROP_OUR_DESC = "ourDesc";
	public static String PROP_OUR_NAME = "ourName";
	public static String PROP_OUR_PB = "ourPb";
	public static String PROP_OUR_SORT_ID = "ourSortId";
	public static String PROP_ID = "id";
	private int hashCode;
	private String id;
	private String ourName;
	private String ourDesc;
	private Integer ourRate;
	private Integer ourSortId;
	private PositionBase ourPb;
	private Department ourDept;

}
